package com.yhgm.mapper;

import com.yhgm.model.entity.FileDelete;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

public interface FileDeleteDao {
    @Select("select path from file_delete_job where time<#{date}")
    List<String> getPathsByTime(Date date);

    @Delete("delete from file_delete_job where time<#{date}")
    Integer deletePathsByTime(Date date);

    Integer addBatch(@Param("fd") List<FileDelete> fileDeletes);
}
